package com.alipay.model.entity;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

/**
 *
 * @author Jun
 * @date 2019/3/23
 */
@Data
@NoArgsConstructor
public class RedBagTransEntity {
    /**
     * 主键
     */
    private Long id;

    /**
     * 红包唯一编号
     */
    private String redBagNo;

    /**
     * 抢到红包的用户Id
     */
    private String userId;

    /**
     * 抢到的红包金额
     */
    private BigDecimal amount;

    /**
     * 红包转账状态
     */
    private Byte status;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    private Date updateTime;

    public RedBagTransEntity(String redBagNo, String userId, BigDecimal amount, Byte status, Date createTime) {
        this.redBagNo = redBagNo;
        this.userId = userId;
        this.amount = amount;
        this.status = status;
        this.createTime = createTime;
    }
}
